作者:谁的围脖搞笑排行榜 | 来源:互联网 | 2023-09-02 20:02
12 ruby= input.input :start_time, :label => falsewould render non html_safe stringUsed tec
1 2
| ruby
= input.input :start_time, :label => false |
would render non html_safe string
Used technique used on stringish labels
1 2 3 4 5
| ruby
# labelling.rb:8
def label_html
render_label? ? builder.label(input_name, label_text, label_html_options) : "".html_safe
end |
该提问来源于开源项目:formtastic/formtastic
the year, month and day (fragments) have their own labels, which formtastic.css hides.
correct, feature request, not a bug. Thanks for this patch.